<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组练习</title>
</head>
<body>
<script>
    var runningSum = function(nums) {
        nums = [2,3,4,5];
        let sum = [];
        for(let i = 0;i < nums.length;i++){
            for(let j = 0;j < nums.length;j++){
                sum[i] = nums[i] + nums [j];

            }
        }
        return nums;
    };
    console.log(runningSum());
</script>
</body>
</html>